package com.geekaca.news.mapper;

import com.geekaca.news.domain.NewsTag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.yaml.snakeyaml.nodes.Tag;

import java.util.List;

/**
* @author Peter
* @description 针对表【tb_news_tag】的数据库操作Mapper
* @createDate 2024-02-24 14:19:23
* @Entity com.geekaca.news.domain.NewsTag
*/
@Mapper
public interface NewsTagMapper {

    int deleteByPrimaryKey(@Param("tagId") Long id);

    int insert(NewsTag record);

    int insertSelective(NewsTag record);

    NewsTag selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(NewsTag record);

    int updateByPrimaryKey(NewsTag record);

    int getTotalTags();

    NewsTag selectByTagName(@Param("tagName") String tagName);

    void batchInsertBlogTag(List<NewsTag> tagListForInsert);

    List<NewsTag> getAllTags(@Param("start") Integer start, @Param("pageSize") Integer pageSize);
}
